<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  

  
  <title>02-主题 | Hexo</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  
  
  
  <meta name="description" content="安装主题默认的landspace主题相对于我来说不是很满意，这里给大家推荐一个古风的主题[Antiquity](冰凌呀&#x2F;hexo-theme-antiquity (gitee.com)) 首先使用命令行打开我们博客文件夹下的themes文件夹，使用命令git clone https:&#x2F;&#x2F;gitee.com&#x2F;bingling_ice-cream&#x2F;hexo-theme-antiquity.g">
<meta property="og:type" content="article">
<meta property="og:title" content="02-主题">
<meta property="og:url" content="https://bingling_ice-cream.gitee.io/hexo/2023/11/26/02-%E4%B8%BB%E9%A2%98/index.html">
<meta property="og:site_name" content="Hexo">
<meta property="og:description" content="安装主题默认的landspace主题相对于我来说不是很满意，这里给大家推荐一个古风的主题[Antiquity](冰凌呀&#x2F;hexo-theme-antiquity (gitee.com)) 首先使用命令行打开我们博客文件夹下的themes文件夹，使用命令git clone https:&#x2F;&#x2F;gitee.com&#x2F;bingling_ice-cream&#x2F;hexo-theme-antiquity.g">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2023-11-26T05:42:23.000Z">
<meta property="article:modified_time" content="2023-11-26T06:14:58.515Z">
<meta property="article:author" content="XGL">
<meta property="article:tag" content="Hexo">
<meta name="twitter:card" content="summary">
  
    <link rel="alternate" href="/hexo/atom.xml" title="Hexo" type="application/atom+xml">
  
  
    <link rel="icon" href="/images/default-avatar.jpg">
  
  
    <link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
  
  
<link rel="stylesheet" href="/hexo/css/style.css">

  
<link rel="stylesheet" href="/hexo/css/highlight.css">

<meta name="generator" content="Hexo 7.0.0"></head>

<body>
  <div id="fullpage" class="mobile-nav-right">
    
      <div id="wrapper" title="图片来自网络">
    
    
      <header id="header">
  <div id="nav-toggle" class="nav-toggle"></div>
  <div class="head-box global-width">
    <nav class="nav-box nav-right">
      
        <a class="nav-item" href="/hexo/" title
        
        >首页</a>
      
        <a class="nav-item" href="/hexo/archives" title
        
        >归档</a>
      
    </nav>
  </div>
</header>
      <div id="middlecontent" title class="global-width sidebar-right">
        <section id="main"><article id="post-02-主题" class="article global-container article-type-post" itemscope itemprop="blogPost">
  
    <header class="article-header">
      
  
    <h1 class="article-title" itemprop="name">
      02-主题
    </h1>
  

    </header>
  
  <div class="article-meta">
    <a href="/hexo/2023/11/26/02-%E4%B8%BB%E9%A2%98/" class="article-date">
  <time datetime="2023-11-26T05:42:23.000Z" itemprop="datePublished">2023-11-26</time>
</a>
    
    
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/hexo/tags/Hexo/" rel="tag">Hexo</a></li></ul>

  </div>
  
    <span id="busuanzi_container_page_pv">
      本文总阅读量<span id="busuanzi_value_page_pv"></span>次
    </span>
  

  <div class="article-inner">
    
    <div class="article-content article-content-cloud" itemprop="articleBody">
      
        <h3 id="安装主题"><a href="#安装主题" class="headerlink" title="安装主题"></a>安装主题</h3><p>默认的landspace主题相对于我来说不是很满意，这里给大家推荐一个古风的主题[Antiquity](<a target="_blank" rel="noopener" href="https://gitee.com/bingling_ice-cream/hexo-theme-antiquity">冰凌呀&#x2F;hexo-theme-antiquity (gitee.com)</a>)</p>
<p>首先使用命令行打开我们博客文件夹下的themes文件夹，使用命令<code>git clone https://gitee.com/bingling_ice-cream/hexo-theme-antiquity.git</code>将主题下载到themes文件夹下</p>
<p>再打开博客文件夹下的_config.yml，将其中的theme属性修改为<code>hexo-theme-antiquity</code>，执行命令<code>hexo server</code>启动博客，再打开浏览器访问，可以发现，主题已经切换成古风了。</p>
<h3 id="修改图片"><a href="#修改图片" class="headerlink" title="修改图片"></a>修改图片</h3><p>我们可以到文件夹<code>hexo-theme-antiquity/source/images</code>下将我们的图片替换掉原来的图片，只需要修改成相同的名字，再重新启动博客，可以看到主题的背景和头像已经修改成我们自己的图片了。</p>

      
    </div>
    
      <footer class="article-footer">
        完
      </footer>
    
  </div>
  
    
<nav id="article-nav">
  <div class="article-nav-block">
    
      <a href="/hexo/2023/11/26/03-%E9%83%A8%E7%BD%B2/" id="article-nav-newer" class="article-nav-link-wrap">
        <strong class="article-nav-caption"></strong>
        <div class="article-nav-title">
          
            03-部署
          
        </div>
      </a>
    
  </div>
  <div class="article-nav-block">
    
      <a href="/hexo/2023/11/26/01-%E7%AE%80%E4%BB%8B/" id="article-nav-older" class="article-nav-link-wrap">
        <div class="article-nav-title">01-简介</div>
        <strong class="article-nav-caption"></strong>
      </a>
    
  </div>
</nav>

    <link rel="stylesheet" href="/css/gitment.css"> 
<script src="/js/gitment.js"></script>

<div id="gitmentContainer"></div>

<script>
var gitment = new Gitment({
  owner: '',
  repo: '',
  oauth: {
    client_id: '',
    client_secret: '',
  },
})
gitment.render('gitmentContainer')
</script>

  
  
</article>
</section>
        <aside id="sidebar">
  
    <div class="widget-box">
  <div class="avatar-box">
    <img class="avatar" src="https://bingling_ice-cream.gitee.io/hexo/images/default-avatar.jpg" title="图片来自网络"></img>
    <h3 class="avatar-name">
      
        氷凌公子
      
    </h3>
    <p class="avatar-slogan">
      英俊潇洒 玉树临风
    </p>
  </div>
</div>


  
    

  
    
  <div class="widget-box">
    <h3 class="widget-title">标签</h3>
    <div class="widget">
      <ul class="tag-list" itemprop="keywords"><li class="tag-list-item"><a class="tag-list-link" href="/hexo/tags/Hexo/" rel="tag">Hexo</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-box">
    <h3 class="widget-title">归档</h3>
    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/hexo/archives/2023/11/">十一月 2023</a></li></ul>
    </div>
  </div>

  
    
  <div class="widget-box">
    <h3 class="widget-title">最新文章</h3>
    <div class="widget">
      <ul>
        
          <li>
            <a href="/hexo/2023/11/26/03-%E9%83%A8%E7%BD%B2/">03-部署</a>
          </li>
        
          <li>
            <a href="/hexo/2023/11/26/02-%E4%B8%BB%E9%A2%98/">02-主题</a>
          </li>
        
          <li>
            <a href="/hexo/2023/11/26/01-%E7%AE%80%E4%BB%8B/">01-简介</a>
          </li>
        
      </ul>
    </div>
  </div>

  
      <div class="widget-box">
    <h3 class="widget-title">友链</h3>
    <div class="widget">
      
        <a style="display: block;" href="https://hexo.io/zh-cn/" title target='_blank'
        >博客构建框架：Hexo</a>
      
        <a style="display: block;" href="https://yiluyanxia.github.io/" title target='_blank'
        >主题作者博客：一路烟霞</a>
      
    </div>
  </div>

  
</aside>
      </div>
      <footer id="footer">
  <div class="foot-box global-width">
    &copy; 2023 XGL &nbsp;&nbsp;
    驱动于 <a href="http://hexo.io/" target="_blank">Hexo</a>
    &nbsp;|&nbsp;主题 <a target="_blank" rel="noopener" href="https://github.com/yiluyanxia/hexo-theme-antiquity">antiquity</a>
    <br>
    <script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
    <span id="busuanzi_container_site_pv">不蒜子告之   阁下是第<span id="busuanzi_value_site_pv"></span>个访客</span>
  </div>
</footer>
      <script src="https://code.jquery.com/jquery-2.0.3.min.js"></script>
<script>
if (!window.jQuery) {
var script = document.createElement('script');
script.src = "/js/jquery-2.0.3.min.js";
document.body.write(script);
}
</script>

  
<link rel="stylesheet" href="/hexo/fancybox/jquery.fancybox.css">

  
<script src="/hexo/fancybox/jquery.fancybox.pack.js"></script>




<script src="/hexo/js/script.js"></script>




    </div>
    <nav id="mobile-nav" class="mobile-nav-box">
  <div class="mobile-nav-img mobile-nav-top"></div>
  
    <a href="/hexo/" class="mobile-nav-link">首页</a>
  
    <a href="/hexo/archives" class="mobile-nav-link">归档</a>
  
  <div class="mobile-nav-img  mobile-nav-bottom"></div>
</nav>    
  </div>
</body>
</html>